package com.iot.nev.gateway.connector.mongdb;

public class TestMongoDB {
	public static void main(String[] args) {
		long duration = 0;
		int num = 1;
		long startTime = System.currentTimeMillis();
		do{
			num++;
			SaveDataForMongoDB.saveData("");
			long currTime = System.currentTimeMillis();
			duration = (currTime - startTime);
		}while(num < 10000);
		System.err.println(duration + "秒存储：" + num);
	}
}
